<template>
  <div class="my-Product">
    <h1>姓名============== {{ title }}</h1>

    <!-- <button @click="sub" >来</button> -->
  </div>
</template>

<script>
export default {
  props: ["title"],
  methods: {
    // sub() {
    //   this.$emit("kan", this.id);
    // },
    props: {
      title: {
        default: "这是默认的标题",
        type: String,
      },
    },
  },
};
</script>

<style  scoped>
.my-Product {
  width: 400px;
  height: 400px;
  border: 2px solid #000;
  border-radius: 5px;
  margin: 100px;
}
</style>